package com.ling.module1sbbyyds.controller.community;

import com.ling.sbbyyds.interaction.param.CommunityTalkTypePo;
import com.ling.module1sbbyyds.service.community.CommunityTalkTypeService;
import com.ling.sbbyyds.interaction.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 天道酬勤、学无止境
 *
 * @Description: 社区话题分类
 * @author: ling
 * @date: 2022年03月08日
 */
@RestController
@RequestMapping("api/communityTalkType/")
public class CommunityTalkTypeController {

    @Autowired(required = false)
    private CommunityTalkTypeService communityTalkService;


    /**
     * http://127.0.0.1:8899/communityTalkType/getCommunityTalkTypeList?page=&limit=
     * 获取话题列表
     * @param page
     * @param limit
     * @param communityTalkTypePo
     * @return
     */
    @GetMapping("getCommunityTalkTypeList")
    public ResultVo getCommunityTalkList(@RequestParam(value = "page",required = false) Integer page,
                                         @RequestParam(value = "limit",required = false) Integer limit, CommunityTalkTypePo communityTalkTypePo){
         return communityTalkService.getCommunityTalkTypeList(page,limit,communityTalkTypePo);
    }




}
